<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 九九乘法表 -->
    <script>
        //1.控制行数
        for (let i = 1; i <= 9; i++) {
            for (let num = 1; num <= i; num++) {
                // 控制列数

                document.write(`<span>${i}*${num}=${num * i}</span>`)
            }
            document.write('<br>')
        }
    </script>
</body>

</html>